package com.bjx.system.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.bjx.common.core.domain.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @desc: 组织信息数据实体
 * @author: liushuai
 * @date: 2022/09/29
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_org")
@Schema(title = "Org",description = "组织信息")
public class OrgEntity extends BaseEntity {
      /**
      * 组织机构Id
      */
      @TableId(type = IdType.AUTO)
      @Schema(title = "orgId",description = "组织机构Id")
      private  Long orgId; 
      
      /**
      * 组织机构名称
      */
      @Schema(title = "orgName",description = "组织机构名称")
      private  String orgName; 
      
      /**
      * 上层组织机构名称
      */
      @Schema(title = "pid",description = "上层组织机构名称")
      private  Long pid; 
      
      /**
      * 公司Id
      */
      @Schema(title = "comId",description = "公司Id")
      private  Long comId; 
      
      /**
      * 组织类型
      */
      @Schema(title = "type",description = "组织类型")
      private  Short type; 
      
      /**
      * 删除标识(0:存在/1:删除)
      */
      @Schema(title = "delFlag",description = "删除标识(0:存在/1:删除)")
      private  Short delFlag; 
      
      /**
      * 是否启用(1是/2否)
      */
      @Schema(title = "enabled",description = "是否启用(1是/2否)")
      private  Short enabled; 
      
      /**
      * 备注
      */
      @Schema(title = "remark",description = "备注")
      private  String remark; 
      
      /**
      * 顺序字段
      */
      @Schema(title = "orderNum",description = "顺序字段")
      private  Integer orderNum; 
      
}